home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MISC / SHELL.ARC / Shell / h / SpriteRect < prev    next >
Encoding:
Text File  |  1994-08-15  |  1.0 KB  |  35 lines

  1. #ifndef __Shell_Sprite_h
  2. #define __Shell_Sprite_h
  3.  
  4. #ifndef __Shell_h
  5. #include "Shell.Shell.h"
  6. #endif
  7.  
  8. Shell_rectblock *Shell_AddSpriteRect(
  9.     Shell_windblock    *wind,
  10.     int        x,
  11.     int        y,
  12.     int        xsize,
  13.     int        ysize
  14.     );
  15.     /* Allocates memory for a sprite of the size and position specified.    */
  16.     /* The sprite will be in the present screen mode.            */
  17.     /* To plot to this sprite, use:                        */
  18.  
  19. void Shell_RedirectToSprite( Shell_rectblock *rectblock);
  20.     /* Call this to make all subsequent ploting go to the spriterect.    */
  21.     /* Sprite plotting has (0,0) at the bottom-left of the sprite.        */
  22. void Shell_UnRedirect( void);
  23.     /* Call this to go back to plotting to the screen.            */
  24.  
  25.     /* NB don't call Shell/Wimp/Event_Poll while output is redirected,        */
  26.  
  27.  
  28. extern const Shell_convertpoint    Shell_nullconvert;
  29.     /* This is a convert point which is {0, 0}, so if you pass it to    */
  30.     /* things like Shell_Circle, the Shell function will work exactly     */
  31.     /* same as the standard GFX functions, with the origin at the bottom-    */
  32.     /* -left of the screen.                            */
  33.  
  34. #endif
  35.